<%@page import="com.is.model.Student"%>
<%@page import="com.is.control.StudentControl"%>
<%@page import="com.is.util.ParamUtil"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page import="com.is.model.*" %>
<%@page import="com.is.control.ParamStuyearControl"%>
<%@page import="com.is.util.DesData"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" href="/InterStu/resources/image/favicon.ico" />
<link rel="stylesheet" type="text/css" href="../../resources/css/all.css" />
<script type="text/javascript" src="../../resources/js/jquery-1.8.1.js"></script>
<link href="../../resources/css/default.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../../resources/js/jquery.artDialog.js"></script>
<script type="text/javascript" src="../../resources/js/iframeTools.js"></script>
<script type="text/javascript">
	$(function(){
		var block = $("#magic_block");
		if($(".active a").position()){
			block.css("top",$(".active a").position().top+10)
			.data("oriTop",$(".active a").position().top)
		}
		var date = new Date();
		var year = date.getFullYear();
		var month = date.getMonth() + 1;
		$(".yam").html(year +"年" + month + "月");
		$(".nav ul li").find("a").hover(
			function(){
				var $this = $(this);
				var newTop = $this.position().top;
				block.stop().animate({
					top:newTop+10
				})
			},
			function(){
				block.stop().animate({
					top:block.data("oriTop")+10
				})
			}
		)
		var h = $('.right').height();
		$(".left").height(h);
		$(".update").click(function(){
			$.dialog.open("/InterStu/update_info.jsp",{width:460,height:400,title:"个人信息"});
		})
		$('img').error(function(){
			this.src = "/InterStu/resources/image/man.GIF";
		})
	})
</script>
<title>留学生预科班</title>
</head>
<%	
      User cu =(User)session.getAttribute("user"); 
      DesData des = new DesData();
      int stuId = 0;
      int stuyear =ParamStuyearControl.getCurrentStuyearId();
      int classId =0;
      try{
          stuId = Integer.parseInt(des.decrypt(ParamUtil.getString(request,"stuId")));
          stuyear = Integer.parseInt(des.decrypt(ParamUtil.getString(request,"stuyear")));
          }catch(Exception e){
             out.print("参数错误");
          }
      
      if(stuId!=0){
      Student ns = StudentControl.getStudent(stuId);
      classId = Integer.parseInt(ns.getClassId());
 %>
<body>
<div class="header">
	<div class="title pr">
    	<a href="javascript:void(0);"><span class="update pa">个人信息</span></a>
        <span class="logout pa"><a class="hide" href="/InterStu/login/logout.jsp">退出</a></span>
    </div>
</div>
<div class="main">
	<div class="left">   
	 <div class="infomation">
			<div class="photo">
			<%
			String picUrl = cu.getPicUrl();
			%>
				<img width='60' height="60" src = "<%=picUrl %>"  />
			</div>
			<div class="welcome">
				<%=cu.getName() %>,<br/>
				欢迎您使用！
			</div>
		</div> 	
    	<div class="nav">
        	<ul>	
            	<li class="pa" id="magic_block"></li>
                <li><a href="/InterStu/pages/stuyear/stuyear_start.jsp">新学期设置</a></li>
                <li><a href="/InterStu/pages/users/user_all.jsp">用户管理</a></li>
                <li><a href="/InterStu/pages/students/student_add.jsp">学生管理</a></li>
                <li class="active"><a href="/InterStu/pages/dictation/dictation_add.jsp">学生考核</a></li>
                <li><a href="/InterStu/pages/assess/teacher_assess.jsp">教职人员管理</a></li>
            </ul>
        </div>
    </div>
    <div class="right">
    <form action="evaluation_add_do.jsp?classId=<%=des.encrypt(classId+"") %>" method="post">
    <div class="r1">
    	<table class="dictations tab">
	    <tr>
	    	<td>
	    		<a href="/InterStu/pages/dictation/dictation_add.jsp">听写成绩</a>
			</td>
			<td>
				<a href="/InterStu/pages/homework/homework_add.jsp">作业成绩</a>			
			</td>
			<td>
				<a href="/InterStu/pages/courseScore/score_go.jsp">成绩录入</a>
			</td>
			<td>
				<a class="current" href="/InterStu/pages/evaluation/students_all.jsp">综合评价</a>
			</td>
	    </tr>
	    </table>
      <table class="table">
		      <caption>您正在录入的是<%=ns.getChineseName() %>(<%=ns.getPassportName() %>)综合评价信息</caption>
		      <tr>
			      <td>级别Level</td>
			      <td><input type="text" name="level" /></td>
			      <td>成绩Score</td>
			      <td><input type="text" name="score"/></td>
		      </tr>
      </table>
      </div>
      	<div class="r2">
      		<table class="table">
			      	<caption>学生评定Evaluation</caption>
			      <tr>
				      <th colspan="2" width='50%'>教师评语</th>
				      <th colspan="2">Teachers' Comments</th>
			      	 
			      </tr>
			      <tr>
			      	 <td colspan="4" ><textarea  name="comments"></textarea></td>
			      </tr>
			      <tr  height='80'>
			      		<td colspan="2" >&nbsp;</td>
			      		<td colspan="2" align="right">班主任（签章）:<br/>Signature</td>
			      </tr>
			      <tr>
			      		<th colspan="2">奖惩记录</th>
			      		<th colspan="2">Records of Rewards and Punishments</th>
			      </tr>
			      <tr>
					      <td colspan="4" >
					      <textarea  name="records"></textarea>
					      </td>
			      </tr>
			      <tr  height='80'>	
			      		<td colspan="2" >主管院长（签章）:<br/>Signature</td>
			      		<td colspan="2" align="right">办公司负责人（签章）:<br/>Signature</td>
			      </tr>
			      <tr  height='80'>
				      <td colspan="4" style="text-align: right;">
				      <p>
				  	    <span style="display:inline-block; width:240px; text-align:left;">东北师范大学外国留学生预科部</span><br/>
				  	    <span style="display:inline-block; width:240px; text-align:left;" class="yam"></span>
				      </p>
				      </td>
			      </tr>
			      <tr>
			      	<td colspan="4">
			      	<input type="submit" value="确定"/>
			      	<input type="hidden" name="stuId" value="<%=stuId %>"/>
			      	<input type="hidden" name="stuyear" value="<%=stuyear %>"/>
			      	</td>
			      </tr>
	      </table>
      	</div>
      </form>      
 <%}else{
	 
 } %>
        </div>
    </div>
<div class="footer">
	<p>版权所有：东北师范大学留学生预科部&nbsp;&nbsp;  蓝旭工作室开发</p>
</div>
</body>
</html>
